import { Component, NgZone, OnInit } from '@angular/core';
import { Planet, SwitchModes } from '@worktile/planet';

@Component({
  selector: 'app-spa',
  templateUrl: './spa.component.html',
  styleUrls: ['./spa.component.less']
})
export class SpaComponent implements OnInit {
  constructor(private planet: Planet,
              private zone: NgZone
    ){

  }
  get loadingDone() {

    return this.planet.loadingDone;
  }
  timer
  ngOnInit(){
     // this.listenRouter() ;
  this.timer = setInterval(()=> {
    this.zone.run(() => {}) 
  }, 100)
    }
}
